﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity
{
    /// <summary>
    /// Outbound_Details
    /// </summary>
    [Table("Outbound_Details")]
    public class Outbound_Details
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// CreatorId
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// CreateTime
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// Deleted
        /// </summary>
        public Boolean? Deleted { get; set; }

        /// <summary>
        /// 产品Id
        /// </summary>
        public String Product_Id { get; set; }

        /// <summary>
        /// 产品规格Id
        /// </summary>
        public String Products_Id { get; set; }

        /// <summary>
        /// 出入库数量
        /// </summary>
        public Decimal? Outbound_Num { get; set; }
        /// <summary>
        /// 接收货物的人
        /// </summary>
        public String UserId { get; set; }
        /// <summary>
        /// 用途
        /// </summary>
        public String Outbound_Use { get; set; }

        /// <summary>
        /// 付成功，未付款
        /// </summary>
        public Int32 Bound_Flag { get; set; }
        /// <summary>
        ///单价
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 总价
        /// </summary>
        public decimal TotalPrice { get; set; }

        /// <summary>
        /// 上期结余
        /// </summary>
        public int oldBalance { get; set; }

        /// <summary>
        /// 积分价格
        /// </summary>
        public int PointPrice { get; set; }

        /// <summary>
        /// 积分总计
        /// </summary>
        public int TotalPoint { get; set; }
        /// <summary>
        /// 本期结余
        /// </summary>
        public int newBalance { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public String productName { get; set; }
        /// <summary>
        ///规格名称
        /// </summary>
        public String productsName { get; set; }
        /// <summary>
        /// DATA0
        /// </summary>
        public String DATA0 { get; set; }

        /// <summary>
        /// DATA1
        /// </summary>
        public String DATA1 { get; set; }

        /// <summary>
        /// DATA2
        /// </summary>
        public String DATA2 { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public String OrderCode { get; set; }
        /// <summary>
        /// 主表订单Id
        /// </summary>
        public String OrderMater_Id { get; set; }
    }

    public enum Flag
    {
        未付款=1,
        已付款 = 2
    }
}